import LocalAuthor from "../entity/LocalAuthor.mjs";

export default class LocalAuthorDTO extends LocalAuthor {
  /**
   * 作者级别
   * @type { number | undefined | null }
   */
  authorRank

  constructor(localAuthorDTO) {
    if (localAuthorDTO === undefined) {
      super()
      this.authorRank = undefined
    } else {
      super(localAuthorDTO)
      this.authorRank = localAuthorDTO.authorRank
    }
  }
}
